public class o {
    public static void main(String[] args) {
        int [] arr ={66,22,33,44,55};
        int sum = bijiao(arr);
        System.out.println("数组中最大值为："+sum);
    }
    public static int bijiao( int []arr) {
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] > sum) {
                sum = arr[i];
            }
        }
        return sum;
    }
}
